
package com.zhitan.ems.app.patrol.wrapper;
import com.zhitan.ems.app.patrol.entity.PatrolTrackEntity;
import com.zhitan.ems.app.patrol.vo.PatrolTrackVO;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;

  /**
 * 巡检轨迹 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2024-11-02 14:05:23
 */
public class PatrolTrackWrapper extends BaseEntityWrapper<PatrolTrackEntity, PatrolTrackVO>  {
    public static PatrolTrackWrapper build() {
        return new PatrolTrackWrapper();
    }
	@Override
	public PatrolTrackVO entityVO(PatrolTrackEntity patrolTrack) {
		if(patrolTrack==null) {
			return null;
		}
		PatrolTrackVO patrolTrackVO = BeanUtil.copy(patrolTrack, PatrolTrackVO.class);
		return patrolTrackVO;
	}

}
